<%@ page language="java" contentType="text/html" pageEncoding="utf-8" import="java.util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<style>
img{
	width:150px;
	height:150px;
}
</style>
<body>
<h1>您的购物车</h1>
<jsp:useBean id="g1" class="cn.goods" scope="session"></jsp:useBean>
<jsp:useBean id="g2" class="cn.goods" scope="session"></jsp:useBean>
<jsp:useBean id="g3" class="cn.goods" scope="session"></jsp:useBean>
<jsp:useBean id="g4" class="cn.goods" scope="session"></jsp:useBean>
<%
	g1.setName("西装");g1.setImg("1.jpg");g1.setPrice(500);
	g2.setName("裤子");g2.setImg("2.jpg");g2.setPrice(500);
	g3.setName("鞋子");g3.setImg("3.jpg");g3.setPrice(500);
	g4.setName("领带");g4.setImg("4.jpg");g4.setPrice(500);
%>
<table>
<tr>
	<td>名称</td>
	<td>图片</td>
	<td>价格</td>
</tr>
<tr>
<form action="good.jsp">
	<td><%out.print(g1.getName()); %></td>
	<td><img src="image/<%out.print(g1.getImg()); %>"></td>
	<td><%out.print(g1.getPrice()); %></td>
	<td><button type="submit">浏览</button></td>
</form>
</tr>
<tr>
	<td><%out.print(g2.getName()); %></td>
	<td><img src="image/<%out.print(g2.getImg()); %>"></td>
	<td><%out.print(g2.getPrice()); %></td>
	<td></td>
</tr>
<tr>
	<td><%out.print(g3.getName()); %></td>
	<td><img src="image/<%out.print(g3.getImg()); %>"></td>
	<td><%out.print(g3.getPrice()); %></td>
	<td></td>
</tr>
<tr>
	<td><%out.print(g4.getName()); %></td>
	<td><img src="image/<%out.print(g4.getImg()); %>"></td>
	<td><%out.print(g4.getPrice()); %></td>
	<td></td>
</tr>
</table>
</body>
</html>